package br.usp.pcs.basys.engine;

import br.usp.pcs.basys.event.MemoryRequest;

public class MemoryResourceManager extends
		ComputerResourceManager<Memory, MemoryRequest> {

	public void allocate(long size) throws UnavaiableResourceException {
		((Memory)resource).allocate(size);
	}

	public void deallocate(long size) {
		((Memory)resource).deallocate(size);
	}
	
	@Override
	public void release() {
		throw new RuntimeException();
	}
	
	@Override
	public void reserve() throws UnavaiableResourceException {
		throw new RuntimeException();
	}

}
